package com.aks.student.career.service;

import java.io.Serializable;
import java.sql.BatchUpdateException;
import java.util.List;

/**
 * User: tr1a6333
 * Date: 25.07.2011
 * Time: 15:26
 */
public interface GenericService<T, ID extends Serializable> {


    public T loadById(ID id);

    public ID save(T obj);

    public void update(T obj);

    public void delete(T obj);

    public List<T> findAll(Class persistanceClass);

    public T findById(Class persistanceClass, ID id);

}
